package cn.xiaoyuan.controller.page;

import cn.xiaoyuan.entity.AuthUser;
import cn.xiaoyuan.service.UserAuthService;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

@Controller
@RequestMapping("/page/auth")
public class AuthController {
    @Resource
    UserAuthService userAuthService;
    @RequestMapping("/login")
    public String login() {
        return "login";
    }
    @RequestMapping("/index")
    public String index(HttpServletRequest request, HttpSession session) {
        return "admin/index";
        }
}

